#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/7/31 12:24
# @Author  : summer
# @Email   : 610658552@qq.com
# @File    : urls.py.py
# @Software: PyCharm
# @Desc    :
from django.urls import path

from ssms.views.sms_send_log import SMSLogListView
from ssms.views.view_sms_provider import SMSProviderListCreateView
from ssms.views.view_sms_provider import SMSProviderRetrieveUpdateDestroyView
from ssms.views.view_sms_template import SMSTemplateListCreateView
from ssms.views.view_sms_template import SMSTemplateRetrieveUpdateDestroyView
from ssms.views.view_sms_template import SMSTemplateTestSendView

urlpatterns = [
    # 短信供应商接口
    path('provider/', SMSProviderListCreateView.as_view(), name='sms-provider-list-create'),
    path('provider/<int:pk>/', SMSProviderRetrieveUpdateDestroyView.as_view(), name='sms-provider-detail'),

    path('log/', SMSLogListView.as_view(), name='sms-log'),

    # 短信模板管理
    path('template/', SMSTemplateListCreateView.as_view(), name='sms-template-list-create'),
    path('template/<int:pk>/', SMSTemplateRetrieveUpdateDestroyView.as_view(), name='sms-template-detail'),
    path('template/test/send/<int:pk>/', SMSTemplateTestSendView.as_view(), name='sms-template-test-send'),

]
